24. Araxis Merge File Comparison Report

Produced by Araxis Merge on 2024-03-04 14:38:23 +0000. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

24.1 Files compared

#LocationFileLast Modified
1/Users/coca/Documents/www/Porto v4.0.2/Theme Files/Magento 2.x/Porto Theme v4.0.7/app/code/Smartwave/Megamenu/view/frontend/web/jssw_megamenu.js2023-10-07 03:33:27 +0000
2/Users/coca/Documents/www/Porto v4.0.2/Theme Files/Magento 2.x/Porto Theme v4.0.8/app/code/Smartwave/Megamenu/view/frontend/web/jssw_megamenu.js2023-11-23 04:27:09 +0000

24.2 Comparison summary

DescriptionBetween
Files 1 and 2
Text BlocksLines
Unchanged3160
Changed24
Inserted00
Removed00

24.3 Comparison options

WhitespaceConsecutive whitespace is treated as a single space
Character caseDifferences in character case are significant
Line endingsDifferences in line endings (CR and LF characters) are ignored
CR/LF charactersNot shown in the comparison detail
Active line-pairing rules

24.4 Active regular expressions

No regular expressions were active.

24.5 Comparison detail

1 (function (factory) { 1 (function (factory) {
2     'use strict'; 2     'use strict';
3  3 
4     if (typeof define === 'function' && define.amd) { 4     if (typeof define === 'function' && define.amd) {
5         define([ 5         define([
6             'jquery' 6             'jquery'
7         ], factory); 7         ], factory);
8     } else { 8     } else {
9         factory(window.jQuery); 9         factory(window.jQuery);
10     } 10     }
11 }(function ($) { 11 }(function ($) {
12     'use strict'; 12     'use strict';
13  13 
14     $.fn.swMegamenu = function() { 14     $.fn.swMegamenu = function() {
15         $(".navigation.sw-megamenu li.classic .submenu,.navigation.sw-megamenu li.vertical .submenu, .navigation.sw-megamenu li.staticwidth .submenu, .navigation.sw-megamenu li.classic .subchildmenu .subchildmenu").each(function(){ 15         $(".navigation.sw-megamenu li.classic .submenu,
 .navigation.sw-megamenu li.staticwidth .submenu, .navigation.sw-megamenu li.classic .subchildmenu .subchildmenu").each(function(){
16             $(this).css("left","-9999px"); 16             $(this).css("left","-9999px");
17             $(this).css("right","auto"); 17             $(this).css("right","auto");
18         }); 18         });
19         $(this).find("li.classic .subchildmenu > li.parent").mouseover(function(){ 19         $(this).find("li.classic .subchildmenu > li.parent").mouseover(function(){
20             var popup = $(this).children("ul.subchildmenu"); 20             var popup = $(this).children("ul.subchildmenu");
21             var w_width = $(window).innerWidth(); 21             var w_width = $(window).innerWidth();
22  22 
23             if(popup) { 23             if(popup) {
24                 var pos = $(this).offset(); 24                 var pos = $(this).offset();
25                 var c_width = $(popup).outerWidth(); 25                 var c_width = $(popup).outerWidth();
26                 if(w_width <= pos.left + $(this).outerWidth() + c_width) { 26                 if(w_width <= pos.left + $(this).outerWidth() + c_width) {
27                     $(popup).css("left","auto"); 27                     $(popup).css("left","auto");
28                     $(popup).css("right","100%"); 28                     $(popup).css("right","100%");
29                 } else { 29                 } else {
30                     $(popup).css("left","100%"); 30                     $(popup).css("left","100%");
31                     $(popup).css("right","auto"); 31                     $(popup).css("right","auto");
32                 } 32                 }
33             } 33             }
34         }); 34         });
35         $(this).find("li.staticwidth.parent,li.classic.parent").mouseover(function(){ 35         $(this).find("li.staticwidth.parent,li.classic.parent").mouseover(function(){
36             var popup = $(this).children(".submenu"); 36             var popup = $(this).children(".submenu");
37             var w_width = $(window).innerWidth(); 37             var w_width = $(window).innerWidth();
38  38 
39             if(popup) { 39             if(popup) {
40                 var pos = $(this).offset(); 40                 var pos = $(this).offset();
41                 var c_width = $(popup).outerWidth(); 41                 var c_width = $(popup).outerWidth();
42                 if(w_width <= pos.left + $(this).outerWidth() + c_width) { 42                 if(w_width <= pos.left + $(this).outerWidth() + c_width) {
43                     $(popup).css("left","auto"); 43                     $(popup).css("left","auto");
44                     $(popup).css("right","0"); 44                     $(popup).css("right","0");
45                 } else { 45                 } else {
46                     $(popup).css("left","0"); 46                     $(popup).css("left","0");
47                     $(popup).css("right","auto"); 47                     $(popup).css("right","auto");
48                 } 48                 }
49             } 49             }
50         }); 50         });
51         $(window).resize(function(){ 51         $(window).resize(function(){
52             $(".navigation.sw-megamenu li.classic .submenu,.navigation.sw-megamenu li.vertical .submenu, .navigation.sw-megamenu li.staticwidth .submenu, .navigation.sw-megamenu li.classic .subchildmenu .subchildmenu").each(function(){ 52             $(".navigation.sw-megamenu li.classic .submenu,
 .navigation.sw-megamenu li.staticwidth .submenu, .navigation.sw-megamenu li.classic .subchildmenu .subchildmenu").each(function(){
53                 $(this).css("left","-9999px"); 53                 $(this).css("left","-9999px");
54                 $(this).css("right","auto"); 54                 $(this).css("right","auto");
55             }); 55             });
56         }); 56         });
57         $(".nav-toggle").off('click').on('click',function(e){ 57         $(".nav-toggle").off('click').on('click',function(e){
58             if(!$("html").hasClass("nav-open")) { 58             if(!$("html").hasClass("nav-open")) {
59                 $("html").addClass("nav-before-open"); 59                 $("html").addClass("nav-before-open");
60                 setTimeout(function(){ 60                 setTimeout(function(){
61                     $("html").addClass("nav-open"); 61                     $("html").addClass("nav-open");
62                 }, 300); 62                 }, 300);
63             } 63             }
64             else { 64             else {
65                 $("html").removeClass("nav-open"); 65                 $("html").removeClass("nav-open");
66                 setTimeout(function(){ 66                 setTimeout(function(){
67                     $("html").removeClass("nav-before-open"); 67                     $("html").removeClass("nav-before-open");
68                 }, 300); 68                 }, 300);
69             } 69             }
70         }); 70         });
71         $("li.ui-menu-item > .open-children-toggle").off("click").on("click", function(){ 71         $("li.ui-menu-item > .open-children-toggle").off("click").on("click", function(){
72             if(!$(this).parent().children(".submenu").hasClass("opened")) { 72             if(!$(this).parent().children(".submenu").hasClass("opened")) {
73                 $(this).parent().children(".submenu").addClass("opened"); 73                 $(this).parent().children(".submenu").addClass("opened");
74                 $(this).parent().children("a").addClass("ui-state-active"); 74                 $(this).parent().children("a").addClass("ui-state-active");
75             } 75             }
76             else { 76             else {
77                 $(this).parent().children(".submenu").removeClass("opened"); 77                 $(this).parent().children(".submenu").removeClass("opened");
78                 $(this).parent().children("a").removeClass("ui-state-active"); 78                 $(this).parent().children("a").removeClass("ui-state-active");
79             } 79             }
80         }); 80         });
81     }; 81     };
82 })); 82 }));